package com.markyao.dao.mapper;

import com.markyao.vo.parmas.UserParmas;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.markyao.dao.pojo.User;

@Mapper
@Repository
public interface UserMapper {

    public void addUser(User user);

    public User findByUsername(User user);

    User findByNameAndPwd(User u);

    User checkOldPwd(@Param("username") String username, @Param("password") String pwd);

    void update(User user);

    User findByUid(Integer uid);

    void updateInfo(UserParmas userParmas);

    void updateAvaterByUid(User user);
}
